package sy.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * PerOwnerAccesscontrolMapping entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_account_app_function_mapping", catalog = "ssh")
public class SysAccountAppFunctionMapping implements java.io.Serializable {

	// Fields

	private Integer id;
	private SysAccount sysAccountId;
	//private PerAddress perAddress;
	private AppFunction appFunctionId;
	private String remarks;

	// Constructors

	/** default constructor */
	public SysAccountAppFunctionMapping() {
	}

	// Property accessors
	@Id
	@GeneratedValue
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "sysAccountId")
	public SysAccount getSysAccountId() {
		return this.sysAccountId;
	}

	public void setSysAccountId(SysAccount sysAccountId) {
		this.sysAccountId = sysAccountId;
	}
	
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "appFunctionId")
	public AppFunction getAppFunctionId() {
		return appFunctionId;
	}

	public void setAppFunctionId(AppFunction appFunctionId) {
		this.appFunctionId = appFunctionId;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	@Column(name = "remarks")
	public String getRemarks() {
		return this.remarks;
	}

}